import request from '@/utils/request'

const api = {
  getBarcodePageUrl: '/kc_barcode_record/get_barcode_page',
  webPrintBarcodeUrl: '/kc_barcode_record/web_print_barcode',
}

export async function webPrintBarcodeApi(params: Map<string, any>) {
  const res = await request({
    url: api.webPrintBarcodeUrl,
    method: 'get',
    params: params,
  })
  return res
}

export async function getBarcodePageApi(params: Map<string, any>) {
  const res = await request({
    url: api.getBarcodePageUrl,
    method: 'post',
    data: params,
  })
  return res
}
